package com.bizfty.api.apimanager.models;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;

/**
 *
 * @author johns
 */
@DiscriminatorValue("N")
public class DataTypeNumber extends DataType {
    /**
     * 默认数字
     */
    @Column(name = "DEFAULT_NUMBER", precision = 19, scale = 0)
    private BigDecimal defaultNumber;
    /**
     * 最大值
     */
    @Column(name = "MAX_NUMBER", precision = 19, scale = 0)
    private BigDecimal maxNumber;
    /**
     * 最小值
     */
    @Column(name = "MIN_NUMBER", precision = 19, scale = 0)
    private BigDecimal minNumber;
    /**
     * 整数位数
     */
    @Column(name = "INTEGRAL", precision = 2, scale = 0)
    private int integral;
    /**
     * 小数位数
     */
    @Column(name = "FRACTION", precision = 2, scale = 0)
    private int fraction;
}
